package zhongbo.java.air.dictionary.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import zhongbo.java.air.dictionary.model.enums.AirPortStatus;

import java.util.Date;

import static cn.hutool.core.lang.RegexPool.UUID;
@Data
@ApiModel("机场信息")
@TableName("air_airport")
public class AirPort {
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("机场id")
    private String id;
    @ApiModelProperty("机场ICAO")
    @TableField("icao_code")
    private String  icaoCode;
    @ApiModelProperty("机场IATA")
    @TableField("iata_code")
    private String iataCode;
    @ApiModelProperty("机场全称")
    @TableField("name")
    private String  name;
    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private double latitude;
    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private double longitude;
    @ApiModelProperty("机场状态")
    @TableField("status")
    private AirPortStatus status;
    @ApiModelProperty("时区")
    @TableField("timezone")
    private String timezone;
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty("更新时间")
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
}
